<!--SIF Implementation Specification 2.2-6 (March 17, 2008)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="ActivityType">
    <xs:annotation>
      <xs:documentation>
							The work assigned to students, an educational event planned by a teacher to deliver a particular educational concept
							or skill.
						</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TechnicalRequirements" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TechnicalRequirement" minOccurs="0" maxOccurs="unbounded" type="xs:string">
              <xs:annotation>
                <xs:documentation>Applications, OS, or network requirement for activity.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="EssentialMaterials" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="EssentialMaterial" minOccurs="0" maxOccurs="unbounded" type="xs:string">
              <xs:annotation>
                <xs:documentation>Essential material required to engage in this activity.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Title" minOccurs="0" nillable="true" type="xs:normalizedString">
        <xs:annotation>
          <xs:documentation>Descriptive name of the activity.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Preamble" minOccurs="0" nillable="true" type="xs:string">
        <xs:annotation>
          <xs:documentation>Description and context for the activity.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LearningObjectives" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LearningObjective" minOccurs="0" maxOccurs="unbounded" type="xs:string">
              <xs:annotation>
                <xs:documentation>Description of an educational objective of the activity.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="LearningStandards" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LearningStandardItemRefId" minOccurs="0" maxOccurs="unbounded" type="sif:IdRefType">
              <xs:annotation>
                <xs:documentation>Link from activity to associated LearningStandardItem object.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SubjectArea" minOccurs="0" nillable="true" type="sif:SubjectAreaType" />
      <xs:element name="Prerequisites" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Prerequisite" minOccurs="0" maxOccurs="unbounded" type="xs:string">
              <xs:annotation>
                <xs:documentation>Skill or competency the student must have to engage in activity.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Students" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="StudentPersonalRefId" minOccurs="0" maxOccurs="unbounded" type="sif:IdRefType">
              <xs:annotation>
                <xs:documentation>Link to a student.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SourceObjects" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SourceObject" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:annotation>
                  <xs:documentation>GUID assigned to the source object.</xs:documentation>
                </xs:annotation>
                <xs:simpleContent>
                  <xs:extension base="sif:IdRefType">
                    <xs:attribute name="SIF_RefObject" use="required">
                      <xs:annotation>
                        <xs:documentation>The type of learning object the source object is.</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:token">
                          <xs:enumeration value="Assessment" />
                          <xs:enumeration value="LearningResource" />
                          <xs:enumeration value="Activity" />
                          <xs:enumeration value="Lesson" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:attribute>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Points" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:documentation>Number of possible points for an activity.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActivityTime" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CreationDate" minOccurs="0" type="xs:date">
              <xs:annotation>
                <xs:documentation>Creation date of the activity.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Duration" minOccurs="0" nillable="true">
              <xs:annotation>
                <xs:documentation>Time required to complete the activity.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:simpleContent>
                  <xs:extension base="xs:unsignedInt">
                    <xs:attribute name="Units" use="required">
                      <xs:annotation>
                        <xs:documentation>Unit of time of the Duration value. </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:token">
                          <xs:enumeration value="week" />
                          <xs:enumeration value="day" />
                          <xs:enumeration value="hour" />
                          <xs:enumeration value="minute" />
                          <xs:enumeration value="second" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:attribute>
                  </xs:extension>
                </xs:simpleContent>
              </xs:complexType>
            </xs:element>
            <xs:element name="StartDate" minOccurs="0" nillable="true" type="xs:date">
              <xs:annotation>
                <xs:documentation>Date activity is started.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="FinishDate" minOccurs="0" nillable="true" type="xs:date">
              <xs:annotation>
                <xs:documentation>Date activity is finished.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="DueDate" minOccurs="0" nillable="true" type="xs:date">
              <xs:annotation>
                <xs:documentation>Date activity is due.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AssessmentRefId" minOccurs="0" nillable="true" type="sif:IdRefType">
        <xs:annotation>
          <xs:documentation>Link to the SIF Assessment object containing the evaluation information for this activity.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MaxAttemptsAllowed" minOccurs="0" nillable="true" type="xs:unsignedInt">
        <xs:annotation>
          <xs:documentation>How many tries allowed.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ActivityWeight" minOccurs="0" nillable="true" type="xs:decimal">
        <xs:annotation>
          <xs:documentation>The percentage weight of the activity during the particular course or term.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Evaluation" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Description" minOccurs="0" nillable="true" type="xs:string">
              <xs:annotation>
                <xs:documentation>A free text description of the evaluation to be used for this activity</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="EvaluationType" use="required">
            <xs:annotation>
              <xs:documentation>A qualifer for what type of evaluation this is. Valid values are "Inline" and "RefId". Inline values are contained in the optional Description element, RefIds are contained in the AssessmentRefId element.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:token">
                <xs:enumeration value="Inline" />
                <xs:enumeration value="RefId" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="LearningResources" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LearningResourceRefId" minOccurs="0" maxOccurs="unbounded" type="sif:IdRefType">
              <xs:annotation>
                <xs:documentation>A GUID reference to a SIF LearningResource object that supports this activity</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="sif:RefIdType" />
    <xs:attribute ref="xml:lang" use="required" />
  </xs:complexType>

  <xs:element name="Activity" type="sif:ActivityType" />

</xs:schema>